package com.efast.dmom.mes.service;

import java.util.List;
import java.util.Map;

import com.efast.dmom.mes.bean.Plant;
import com.efast.dmom.mes.bean.ResultBean;

public interface PlantService {

	public ResultBean save(Plant plant);

	public ResultBean update(Plant plant);

	public ResultBean delete(Plant plant);

	public Plant getById(long id);

	public Plant getByName(String name);

	public Plant getByCode(String plantCode);
	
	public List<Plant> getAllPlant();
	
	public List<Map<String,String>> queryPlantCodeIdNameList();
	
	public ResultBean getPlantByName(String name);
}
